<?php 
    if(isset($_GET['clear'])){
        file_put_contents($_SERVER['DOCUMENT_ROOT'].'/nsbbs/log/err.log','');
    }
?>
<!DOCTYPE html>
<html>
<head>
	<title>错误日志 - 青柠后台管理</title>
</head>
<body>
    <form>
        <button name="clear" value="on">清除日志</button>
    </form>
<hr />
<?php echo "<pre>";echo file_get_contents($_SERVER['DOCUMENT_ROOT'].'/nsbbs/log/err.log')?>
</body>
</html>